<?php

namespace app\admin\validate;

use think\Validate;

class Activity extends Validate
{
    protected $rule = [
        'grade_id' => 'require',
        'module' => 'require',
        'number' => 'require|number',
        'start_time' => 'require',
        'end_time' => 'require',
    ];
    protected $message = [
        'grade_id.require' => '请选择会员等级',
        'module.require' => '请选择活动类型',
        'mohth.require' => '请选择购买月份',
        'number.require' => '请填写“送/折扣”项',
        'number.number' => '“送/折扣”必须是整数',
        'mohth.start_time' => '请选择开始时间',
        'mohth.end_time' => '请选择结束时间',
    ];


}
